package com.gongzonqiang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import tk.mybatis.spring.annotation.MapperScan;

@MapperScan(basePackages = "com.gongzonqiang.mapper")
@EnableTransactionManagement	//开启事务
@SpringBootApplication
public class WebApp extends SpringBootServletInitializer{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(WebApp.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(WebApp.class, args);
    }
}
